FROM node:8

RUN mkdir -p /helpdoc
WORKDIR /helpdoc

COPY package.json package-lock.json .babelrc /helpdoc/

RUN npm config set registry "https://registry.npm.taobao.org"
RUN npm install

COPY . /helpdoc

EXPOSE 3000

CMD [ "npm", "run", "start:prod" ]
